package com.seuic.hnapps.adapter;

import android.support.annotation.NonNull;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.seuic.hnapps.R;
import com.seuic.hnapps.bean.StatisticalData_bean;
import com.seuic.hnapps.bean.Transaction_Detail_Bean;

import java.util.List;

public class Transaction_Detail_Adapter extends BaseQuickAdapter<StatisticalData_bean, BaseViewHolder> {


    public Transaction_Detail_Adapter(int layoutResId, @Nullable List<StatisticalData_bean> data) {
        super(layoutResId, data);
    }


    @Override
    protected void convert(@NonNull BaseViewHolder helper, StatisticalData_bean item) {
        helper.setText(R.id.transaction_detail_adapter_item_serialnumb, item.getRun_Num()+"");
        helper.setText(R.id.transaction_detail_adapter_item_money, item.getMoney()+"");
        helper.setText(R.id.transaction_detail_adapter_item_time, item.getTime());
        helper.setText(R.id.transaction_detail_adapter_item_type, item.getType());
        helper.setText(R.id.transaction_detail_adapter_item_num, item.getBindnum()+"");
        helper.setText(R.id.transaction_detail_adapter_item_name, item.getName());
        helper.setText(R.id.transaction_detail_adapter_item_operator, item.getCzy());
        helper.setText(R.id.transaction_detail_adapter_item_vouchernumber, item.getPzh()+"");
    }
}
